﻿using Discuz.Toolkit;

namespace WFramework
{
    public class DiscuzSessionHelper
    {
        private  string apikey, secret;
        private  DiscuzSession ds;
        public readonly  string BBSURL = "http://bbs.benpaobaxizang.com/"; //bbs url
        public string cookieDomain = "benpaobaxizang.com";//你的域名
        public string ReturnURl = "http://bbs.benpaobaxizang.com/";
        //public static  string CookieDomain = "benpaobaxizang.com";

        public  DiscuzSession GetSession()
        {
            apikey = "b250ab19d1716c63317a740cda95b2f5";
            secret = "5ffc495b5bfe46025d15070ea3efa9df";

            ds = new DiscuzSession(apikey, secret, BBSURL);

            return ds;
        }
    }
}
